package controllers

import (
	"demo/models"
	"fmt"
)

type UsersController struct {
	BaseController
}

func (users *UsersController) Index()  {
	Users := new(models.Users)
	Users.Id = 1
	user := Users.GetUser()
	users.SetSessionUser(user)
	userInfo := users.GetSessionUser()
	fmt.Println("userInfo：", userInfo)
	users.Data["json"] = user
	users.ServeJSON()
}
